<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${goodsNine.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">跳转商品：</label>
								<div class="col-sm-8">
									<select data-placeholder="--选择商品别--" name="goodsId" id="goodsId"
											class="form-control chosen-select" tabindex="2" required>
										<option value="">--选择类别商品--</option>
										<option th:each="goods : ${goodsList}"
												th:value="${goods.id}"
												th:text="${goods.name}"
												th:selected="${goods.id==goodsNine.goodsId}"
												th:data-price="${goods.price}"
												th:data-stock="${goods.stock}"></option>
									</select>
								</div>
							</div>
							<div id="one" class="form-group">
								<label class="col-sm-3 control-label">原商品价格：</label>
								<div class="col-sm-8">
									<input id="oldPrice" name="oldPrice" th:value="${oldMap.price}" class="form-control" type="text" disabled="disabled">
								</div>
							</div>
							<div id="two" class="form-group">
								<label class="col-sm-3 control-label">原商品库存：</label>
								<div class="col-sm-8">
									<input id="oldStock" name="oldStock" th:value="${oldMap.stock}" class="form-control" type="text" disabled="disabled">
								</div>
							</div>


							<div class="form-group">
								<label class="col-sm-3 control-label">专区价格：</label>
								<div class="col-sm-8">
									<input id="price" th:value="${goodsNine.price}" name="price" class="form-control" type="text">
								</div>
							</div>
							<!--<div class="form-group">
								<label class="col-sm-3 control-label">销量：</label>
								<div class="col-sm-8">
									<input id="numSale" name="numSale" class="form-control" type="text">
								</div>
							</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">库存：</label>
								<div class="col-sm-8">
									<input id="stock" th:value="${goodsNine.stock}" placeholder="该库存不能超过原商品库存" name="stock" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">上级返利：</label>
								<div class="col-sm-8">
									<input id="rebateOne" th:value="${goodsNine.rebateOne}" name="rebateOne" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">上上级返利：</label>
								<div class="col-sm-8">
									<input id="rebateTwo" th:value="${goodsNine.rebateTwo}" name="rebateTwo" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script th:inline="javascript">
	var oldStock = [[${oldMap.stock}]];
	</script>
	<script type="text/javascript" src="/js/appjs/wx/goodsNine/edit.js">
	</script>
</body>
</html>
